<?php
class WK_Error extends Exception {
	public function __construct($message, $code){
		parent::__construct($message, $code);
		WK_App::logError($this);
	}
}